class QuestionModel {
  int? hasNext;
  List<QuestionItem>? list;

  QuestionModel({this.hasNext, this.list});

  QuestionModel.fromJson(Map<String, dynamic> json) {
    hasNext = json['hasNext'];
    if (json['list'] != null) {
      list = <QuestionItem>[];
      json['list'].forEach((v) {
        list!.add(new QuestionItem.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['hasNext'] = this.hasNext;
    if (this.list != null) {
      data['list'] = this.list!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class QuestionItem {
  String? id;
  String? nickName;
  String? headIcon;
  String? showText;
  List<String>? imageList;

  QuestionItem(
      {this.id, this.nickName, this.headIcon, this.showText, this.imageList});

  QuestionItem.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    nickName = json['nickName'];
    headIcon = json['headIcon'];
    showText = json['showText'];
    imageList = json['imageList']?.cast<String>();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['nickName'] = this.nickName;
    data['headIcon'] = this.headIcon;
    data['showText'] = this.showText;
    data['imageList'] = this.imageList;
    return data;
  }
}
